package service;

import pojo.User;

import java.util.List;

public interface UserService {
    List<User> findAll();
    int add(User user);
    int update(User user);
    int deleteUser(Integer userId);
    User findById(Integer userId);
    User findByUserName(String userName);
    boolean checkUserNameExists(String userName);
}